import request from "@/request";

export default{
    login(data){
        return request.post('/login',data).then(response=> response )
    },
    register(data){
        return request.post('/register',data).then(response=> response )
    },
    changeImg(data){
        return request.post('/update/userImg',data).then(response=> response )
    },
    changeInfo(data){
        return request.post('/update/userInfo',data).then(response=> response )
    },
    deleteUser(data){
        return request.post('/deleteUser',data).then(response=> response )
    }
}